/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package percussiongenerator.icons;

import javax.swing.ImageIcon;

/**
 *
 * @author jannes
 */
public class IconLoader{
    public ImageIcon loadIcon(String filename){
        ClassLoader cldr = this.getClass().getClassLoader();
        java.net.URL imageURL   = cldr.getResource("percussiongenerator/icons/" + filename);
        return new ImageIcon(imageURL);
    }
}
